@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}
// 全局通用css
.flex{
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
}
.flexCol{
  display: flex !important;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
}
// 上下左右居中
.flexCenter{
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
// 上下左右居中
.flexColCenter{
  display: flex !important;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
// 清除ul默认样式
ul{
  list-style-type: none;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  padding-inline-start: 0;
  color: #303133;
}

// 边距
.mt5{
  margin-top: 5px !important;
}
.mt10{
  margin-top: 10px !important;
}
.mt15{
  margin-top: 15px !important;
}
.mt20{
  margin-top: 20px !important;
}
.mt25{
  margin-top: 25px !important;
}
.mt30{
  margin-top: 30px !important;
}

.ml5{
  margin-left: 5px !important;
}
.ml10{
  margin-left: 10px !important;
}
.ml15{
  margin-left: 15px !important;
}
.ml20{
  margin-left: 20px !important;
}
.ml25{
  margin-left: 25px !important;
}
.ml30{
  margin-left: 30px !important;
}

.mr5{
  margin-right: 5px !important;
}
.mr10{
  margin-right: 10px !important;
}
.mr15{
  margin-right: 15px !important;
}
.mr20{
  margin-right: 20px !important;
}
.mr25{
  margin-right: 25px !important;
}
.mr30{
  margin-right: 30px !important;
}

.mb5{
  margin-bottom: 5px;
}
.mb10{
  margin-bottom: 10px;
}
.mb15{
  margin-bottom: 15px;
}
.mb20{
  margin-bottom: 20px;
}
.mb25{
  margin-bottom: 25px;
}
.mb30{
  margin-bottom: 30px;
}

.pt5{
  padding-top: 5px;
}
.pt10{
  padding-top: 10px;
}
.pt15{
  padding-top: 15px;
}
.pt20{
  padding-top: 20px;
}
.pt25{
  padding-top: 25px;
}
.pt30{
  padding-top: 30px;
}

.pl5{
  padding-left: 5px;
}
.pl10{
  padding-left: 10px;
}
.pl15{
  padding-left: 15px;
}
.pl20{
  padding-left: 20px;
}
.pl25{
  padding-left: 25px;
}
.pl30{
  padding-left: 30px;
}

.pb5{
  padding-bottom: 5px;
}
.pb10{
  padding-bottom: 10px;
}
.pb15{
  padding-bottom: 15px;
}
.pb20{
  padding-bottom: 20px;
}
.pb25{
  padding-bottom: 25px;
}
.pb30{
  padding-bottom: 30px;
}

.pr5{
  padding-right: 5px;
}
.pr10{
  padding-right: 10px;
}
.pr15{
  padding-right: 15px;
}
.pr20{
  padding-right: 20px;
}
.pr25{
  padding-right: 25px;
}
.pr30{
  padding-right: 30px;
}
// 字体大小
.fs12{
  font-size: 12px;
}
.fs14{
  font-size: 14px;
}
.fs15{
  font-size: 15px;
}
.fs16{
  font-size: 16px;
}
.fs18{
  font-size: 18px;
}
.fs20{
  font-size: 20px;
}
.fs22{
  font-size: 22px;
}
// 粗体
.bold{
  font-weight: bold;
}
// 自定义样式

// 页面标题头部el-header所用
.title{
  color: #303133;
  letter-spacing: 2px;
  font-weight: 600;
}
// element 输入框 type=number 时使用此样式 过滤丑陋箭头样式
.filterInputNumber{
  input::-webkit-inner-spin-button {
    -webkit-appearance: none;
  }
  input[type="number"] {
    -moz-appearance: textfield;
  }
}
// 饿了么输入框文字居中
.inputTextCenter{
  .el-input__inner{
    text-align: center;
  }
}
// 单行文字超出隐藏显示省略号...
.singleLineEllipsis{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
// 多行文字超出隐藏显示省略号...
.twoLineEllipsis{
  word-break: break-all;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  /*! autoprefixer: ignore next */
  -webkit-box-orient:vertical;
  /* autoprefixer: on */
  -webkit-line-clamp:2;
}
.threeLineEllipsis{
  word-break: break-all;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  /*! autoprefixer: ignore next */
  -webkit-box-orient:vertical;
  /* autoprefixer: on */
  -webkit-line-clamp:3;
}
.fourLineEllipsis{
  word-break: break-all;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  /*! autoprefixer: ignore next */
  -webkit-box-orient:vertical;
  /* autoprefixer: on */
  -webkit-line-clamp:4;
}
.fiveLineEllipsis{
  word-break: break-all;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  /*! autoprefixer: ignore next */
  -webkit-box-orient:vertical;
  /* autoprefixer: on */
  -webkit-line-clamp:5;
}
.sixLineEllipsis{
  word-break: break-all;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  /*! autoprefixer: ignore next */
  -webkit-box-orient:vertical;
  /* autoprefixer: on */
  -webkit-line-clamp:6;
}
.sevenLineEllipsis{
  word-break: break-all;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  /*! autoprefixer: ignore next */
  -webkit-box-orient:vertical;
  /* autoprefixer: on */
  -webkit-line-clamp:7;
}
.eightLineEllipsis{
  word-break: break-all;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  /*! autoprefixer: ignore next */
  -webkit-box-orient:vertical;
  /* autoprefixer: on */
  -webkit-line-clamp:8;
}
